
package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Mediator.Model;

public class Buyer 
{
    Mediator mediator;
    String unitOfCurrency;

    public Buyer(Mediator mediator, String unitOfCurrency) 
    {
        this.mediator = mediator;
        this.unitOfCurrency = unitOfCurrency;
    }
    
    public boolean attemptToPurchase(float bid){ return mediator.placeBid(bid, unitOfCurrency);}
}